home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14247 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  959 b 

  1. Path: user2.mnsinc.com!huang
  2. From: huang@mnsinc.com (Szu-Wen Huang)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Q:Hex to Decimal?
  5. Date: 12 Apr 1996 19:47:10 GMT
  6. Organization: Monumental Network Systems
  7. Message-ID: <4kmbvu$a2o@news1.mnsinc.com>
  8. References: <DpqLyJ.8Jy@rci.ripco.com> <4klr9f$29d@news1.mnsinc.com> <4km08u$qgo@solutions.solon.com>
  9. NNTP-Posting-Host: user2.mnsinc.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Peter Seebach (seebs@solutions.solon.com) wrote:
  13. : In article <4klr9f$29d@news1.mnsinc.com>,
  14. : Szu-Wen Huang <huang@mnsinc.com> wrote:
  15. : >Martin Ambuhl (mambuhl@ripco.com) wrote:
  16. : >:         sprintf(target_string,"x",(unsigned)your_integer);
  17.  
  18. : >Which prints an "x" to your string and formats your hard disk if you
  19. : >have a mean C compiler.  :)  Try "%x" as the format string.
  20.  
  21. : Actually, it can't do anything hostile; *printf guarantee that extra arguments
  22. : are ignored.
  23.  
  24. Awww, shucks :)  Wait till you see *my* sprintf() kill a hard disk ;)
  25.